package com.lancoo.znbkxx.teacher.base;

import android.content.Context;

import com.google.android.exoplayer2.upstream.cache.NoOpCacheEvictor;
import com.google.android.exoplayer2.upstream.cache.SimpleCache;

import java.io.File;

/**
 * Created by pengmi on 2019/12/5 15:59
 * Description:
 */
public class VideoCache {
    private static SimpleCache sDownloadCache;

    public static SimpleCache getInstance(Context mContext) {
        if (sDownloadCache == null) sDownloadCache = new SimpleCache(new File(mContext.getCacheDir(), "exoCache"), new NoOpCacheEvictor());
        return sDownloadCache;
    }
}
